{extend name="$_admin_base_layout" /} {block name="body"}
<div class="container-fluid" style="padding-top: 10px; background-color: rgb(240, 242, 245);">
    <div class="panel">
        <div class="panel-body">
            <form action="{:url('index')}" class="form-inline form-search">
                <div class="form-group">
                    <label>文件原始名：</label>
                    <input type="text" class="form-control" name="name" value="{$name|default=''}">
                </div>
                <button type="submit" class="btn btn-primary">查询</button>
            </form>
        </div>
        <!-- 数据表格 -->
        <table class="table table-sorter">
            <!-- 表头 -->
            <thead>
            <tr>
                <th style="width: 20px;">#</th>
                <th>原始文件名</th>
                <th>保存名称</th>
                <th>保存路径</th>
                <th>文件后缀</th>
                <th>大小(K)</th>
                <th>上传时间</th>
                <th style="width: 110px;">操作</th>
            </tr>
            </thead>
            <!-- 列表 -->
            <tbody>
            {notempty name="data_list"} {volist name="data_list" id="info"}
            <tr>
                <td>{$i}</td>
                <td>{$info.name}</td>
                <td>{$info.savename}</td>
                <td>{$info.savepath}</td>
                <td>{$info.ext}</td>
                <td>{$info.size_text}</td>
                <td>{$info.create_time|date='Y-m-d H:i:s'}</td>
                <td>
                    <a href="{:url('file/download',array('id'=>$info['id']))}">下载</a>
                </td>
            </tr>
            {/volist} {else/}
            <tr>
                <td class="text-center" colspan="8">aOh! 暂时还没有内容!</td>
            </tr>
            {/notempty}
            </tbody>
            <tfoot>
            <tr>
                <td colspan="8">
                    {$pager||raw}
                </td>
            </tr>
            </tfoot>
        </table>
    </div>
</div>
{/block}
{block name="sub_menu_action"}
<ul class="nav nav-pills" style="margin-right: 10px;">
    <li>
        <a href="{:url('add')}" data-toggle="modal" data-icon="plus" data-backdrop="static" data-title="新增文件"
           data-backdrop="static">
            <i class="icon-plus"></i> 新增
        </a>
    </li>

</ul>
{/block}
